package com.daipresents.logging.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogBackPerformanceSample {
    final static Logger logger = LoggerFactory
            .getLogger(LogBackPerformanceSample.class);

    public static void main(String[] args) {
        
        long start = System.currentTimeMillis();
        
        int cnt = 1000;
        for (int i = 0; i < cnt; i++) {
            for (int j = 0; j < cnt; j++) {
                logger.debug("fujihara.");
            }
        }
        
        long end = System.currentTimeMillis();
        
        logger.debug(String.valueOf((end -start) / 1000));
    }

}
